package com.lucy.flow.service;

import com.lucy.common.service.BaseService;
import com.lucy.common.service.BatchService;
import com.lucy.common.service.UnwrapService;
import com.lucy.flow.domain.entity.FlowProcess;

public interface FlowProcessService extends BaseService<FlowProcess,String> , UnwrapService<FlowProcess,String>, BatchService<FlowProcess,String> {

    /**
     * 判断操作记录是否存在
     * @param flowWorkId 流程实例ID
     * @param flowNodeId 流程节点ID
     * @param userId 用户ID
     * @return 是否存在
     */
    @Deprecated
    boolean isExist(String flowWorkId,String flowNodeId,String userId);

    /**
     * 判断操作记录是否存在
     * @param flowProcess 流程操作记录 Example T
     * @return 是否存在
     */
    boolean isExist(FlowProcess flowProcess);
}
